#include <iostream>
#include <stdio.h>
using namespace std;
int main()
{
    long long a, b, c, sum;
    int n;
    scanf("%d", &n);
    for (int i = 1; i <= n; i++)
    {
        scanf("%lld %lld %lld", &a, &b, &c);
        sum = a + b;
        if (a > 0 && b > 0 && sum < 0)
            printf("Case #%d: true", i);
        else if (a < 0 && b < 0 && sum >= 0)
            printf("Case #%d: false", i);
        else if (sum > c)
            printf("Case #%d: true", i);
        else
            printf("Case #%d: false", i);
        cout << endl;
    }
}